const xtpl = require('xtpl');
xtpl.renderFile('./ctpl.xtpl',{
    html: '<script>console.log(123)</script>'
},(err, content) => {
    if(err) {
        throw err
    }
    console.log(content);
});